{% extends "company/base.html" %} {% load i18n %}
{% block title %}{% trans "Company Edit title" %}{% endblock %}
{% block content %}
<div>
	{% if user and form %}
	<form action="." method="post">
		{% if form.error_dict %}
		<p class="error">
			{% trans "Please correct the errors below." %} {{form.error_dict}}
		</p>
		{% endif %}
		<table>
			<tbody>
				<tr>
					<td>{% trans "Company name" %}:</td><td>{{form.name}}</td>
					<td>{% if form.name.errors %} {{form.name.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company type" %}:</td><td>{{form.type}}</td>
					<td>{% if form.type.errors %} {{form.type.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company address" %}:</td><td>{{form.address}}</td>
					<td>{% if form.address.errors %} {{form.address.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company postnum" %}:</td><td>{{form.postnum}}</td>
					<td>{% if form.postnum.errors %} {{form.postnum.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company phone" %}:</td><td>{{form.phone}}</td>
					<td>{% if form.phone.errors %} {{form.phone.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company faxno" %}:</td><td>{{form.faxno}}</td>
					<td>{% if form.faxno.errors %} {{form.faxno.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company email" %}:</td><td>{{form.email}}</td>
					<td>{% if form.email.errors %} {{form.email.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company homepage" %}:</td><td>{{form.homepage}}</td>
					<td>{% if form.homepage.errors %} {{form.homepage.errors.0}} {% endif %}</td>
				</tr>
				<tr>
					<td>{% trans "Company introduction" %}:</td><td>{{form.introduction}}</td>
					<td>{% if form.introduction.errors %} {{form.introduction.errors.0}} {% endif %}</td>
				</tr>

			</tbody>
		</table>
		<input type="submit" value="{% trans "Company update" %}" />
	</form>
	{% endif %}
</div>
{% endblock %}
